package com.atguigu.gmall.web.controller;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class LoginController {

    @GetMapping("/login.html")
    public String toLogin(String originUrl , Model model){
        //登录成功之后的重定向路径
        model.addAttribute("originUrl",originUrl);
        return  "login";
    }
}
